package cn.itsource.org.mapper;

import cn.itsource.org.domain.User;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.entity.Example;

public interface UserMapper extends Mapper<User> {
    default User selectOneByPhone(String phone){
        Example example = new Example(User.class);
        example.and().andEqualTo("phone",phone);
        return this.selectOneByExample(example);
    }
}
